﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyReview.aspx.cs" Inherits="CNVP.JShop.Web.Member.MyReview" %>

<%@ Register Src="Footer.ascx" TagName="Footer" TagPrefix="uc1" %>
<%@ Register Src="Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="LeftNav.ascx" TagName="LeftNav" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>我的评论</title>
    <link href="css/Global.css" rel="stylesheet" type="text/css" media="all" />
    <link href="css/Fonts.css" rel="stylesheet" type="text/css" media="all" />
    <link href="css/Style.css" rel="stylesheet" type="text/css" media="all" />
    <link href="../CSS/MemberCenter.css" rel="stylesheet" type="text/css" media="all" />
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/procp.js"></script>
    <script src="../Admin/Common/Option.js" type="text/javascript"></script>
    <script src="../Admin/Common/ThickBox.js" type="text/javascript"></script>
    <link href="js/ThickBox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function OpenModalWin(ProductID, OrderProductsID) {
            showTB('/Controls/WriteReview.aspx' + '?ProductID=' + ProductID + "&OrderProductsID=" + OrderProductsID + "", 500, 300, '产品评论', 'parent');
        }
        function OpenModalWinByLook(ProductID, OrderProductsID, ReviewID) {
            showTB('/Controls/LookReview.aspx' + '?ProductID=' + ProductID + "&OrderProductsID=" + OrderProductsID + "&ReviewID=" + ReviewID + "", 500, 300, '查看评论', 'parent');
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <uc1:Header ID="Header1" runat="server" />
    <div class="Width MBody clearfix">
        <uc1:LeftNav ID="LeftNav1" runat="server" />
        <div class="MRight">
            <div class="MRightTitle">
                <p>
                    评论列表</p>
            </div>
            <div class="MRightBox">
                <asp:Repeater ID="rpList" runat="server">
                    <HeaderTemplate>
                        <table width="98%" class="ListTable" style=" ">
                            <tr>
                                <th>
                                    订单号
                                </th>
                                <th>
                                    产品
                                </th>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td style="width: 150px;">
                                <a href='OrderShow.aspx?id=<%#Eval("ID")%>' target="_blank"><font color="red">
                                    <%#Eval("OrderNum")%></font></a>
                                    <br />
                                    购买时间：<%#Convert.ToDateTime(Eval("PostTime")).ToString("yyyy-MM-dd")%>
                            </td>
                            <td>
                                <ul>
                                <%# OrderProductsImg(Convert.ToInt32(Eval("ID")))%>
                                </ul>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <asp:Literal ID="lblEmpty" Text="<tr><td colspan='6'>没有符合条件的条目!</td></tr>" runat="server"
                            Visible='<%#bool.Parse((rpList.Items.Count==0).ToString())%>'></asp:Literal>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
                <asp:Label ID="LabProlb" runat="server"></asp:Label>
                <div id="paging" runat="server">
                </div>
            </div>
        </div>
    </div>
    <uc1:Footer ID="Footer1" runat="server" />
    </form>
    <script type="text/javascript">
        jQuery(document).ready(CheckUserLogin); 
    </script>
</body>
</html>
